package cn.wxq.daily.empdailymgforserve.service.impl;

import cn.wxq.daily.empdailymgforserve.domain.AbilityQuestionBank;
import cn.wxq.daily.empdailymgforserve.domain.AbilitySingle;
import cn.wxq.daily.empdailymgforserve.mapper.AbilityQuestionBankDao;
import cn.wxq.daily.empdailymgforserve.mapper.AbilitySingleDao;
import cn.wxq.daily.empdailymgforserve.service.AbilityQuestionBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 选择题题库业务
 */
@Service
public class AbilityQuestionBankServiceImpl implements AbilityQuestionBankService{
    @Autowired
    private AbilityQuestionBankDao abilityQuestionBankDao;

    @Override
    public void addquestionBank(AbilitySingle abilitySingle) {
        abilityQuestionBankDao.addquestionBank(abilitySingle);
    }

    @Override
    public List<AbilityQuestionBank> findAllquestionBank() {
        return abilityQuestionBankDao.findAllquestionBank();
    }

    @Override
    public void deleteId(Integer alityQbId) {
        abilityQuestionBankDao.deleteId(alityQbId);
    }
}
